﻿using Basic.FormRemoteModel.QueryInter;
using Basic.FormRemoteModel.QueryInter.Model;
using Basic.UserFormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class UserFormRecordEvent : IRpcApiService
    {
        private readonly IFormRecordService _Service;

        public UserFormRecordEvent ( IFormRecordService service )
        {
            this._Service = service;
        }

        public FormVal GetUserFormValue ( GetUserFormValue obj )
        {
            return this._Service.GetValue(obj.Arg);
        }
        public Dictionary<long, FormVal> GetUserFormValues ( GetUserFormValues obj )
        {
            return this._Service.GetValues(obj.Arg);
        }
        public Dictionary<long, FormVal> GetUserFormVals ( GetUserFormVals obj )
        {
            return this._Service.GetVals(obj.Arg);
        }
    }
}
